//
//  UIScrollView+RAC.h
//  高仿暴走斗图
//
//  Created by key on 16/5/4.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIScrollView (RAC)

/**
 *  rac 创建ScrollView
 *
 *  @param contentOffset 初始偏移
 *  @param contentSize   关东范围
 *  @param pagingEnabled 是否翻页
 *  @param scrollEnabled 是否允许滚动
 *  @param bounces       碰到边界是否会反弹
 *  @param completion    -scrollViewDidScroll: 委托方法的block
 *
 *  @return UIScrollView对象
 */
+ (UIScrollView *)rac_createScrollViewForContentOffset:(CGPoint)contentOffset
                                        andContentSize:(CGSize)contentSize
                                      canPagingEnabled:(BOOL)pagingEnabled
                                      canScrollEnabled:(BOOL)scrollEnabled
                                            canBounces:(BOOL)bounces
                                        withCompletion:(void(^)(id x))completion;

@end
